package keter.ssh.cli;

import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;

public class CommandOptions {
	
    private Options options;
    
    private Option getOption;
    private Option putOption;
	
	public Options getOptions() {
		return options;
	}

	public CommandOptions() {
		// 创建 Options 对象
		options = new Options(); 

		// 添加 -h 参数
		options.addOption("h", false, "Lists short help"); 
				
		//-g|get
	    getOption = Option.builder("g").hasArgs().build();
		options.addOption(getOption);
		
		//-p|put
		putOption = Option.builder("p").hasArgs().build();
		options.addOption(putOption);
	}
	
}
